package com.dycx.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dycx.system.dto.AdminDTO;
import com.dycx.system.entity.AdminDO;
import com.dycx.system.vo.AdminVO;
import com.dycx.system.vo.RoleVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface AdminMapper extends BaseMapper<AdminDO> {

    Page<AdminVO> getPage(Page<AdminVO> page, @Param("param") AdminDTO param);

    AdminVO getInfoById(@Param("id") Integer id);

    List<AdminVO> getList(@Param("status") Integer status);

    AdminDO getInfoByUsername(@Param("username") String username);

    List<RoleVO> getAdminRoleList(@Param("adminId") Integer adminId);
}
